<ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:mif="urn:hl7-org:v3/mif" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hl7-org:v3 ..\sdschemas\SDA.xsd">
    <#assign templateData={"title":"门诊摘要", "code":"HSDC00.02", "templateId":"2.16.156.10011.2.1.1.17"}>
    <#include "fragment/header/header.ftl">
    <#include "fragment/header/componentOf.ftl">
    <component>
        <structuredBody>
            <#--1..1-->
            <component>
                <section>
                    <code code="11450-4" codeSystem="2.16.840.1.113883.6.1" displayName="PROBLEM LIST" codeSystemName="LOINC"/>
                    <text/>
                    <#--0..1-->
                    <entry>
                        <observation moodCode="EVN" classCode="OBS">
                            <code code="DE04.01.120.00" codeSystem="2.16.156.10011.2.2.1" displayName="咨询问题" codeSystemName="卫生信息数据元目录"/>
                            <value xsi:type="ST">${docData.zhuYaoJKWT.ziXunWT!"未见异常"}</value>
                        </observation>
                    </entry>
                    <#--0..1-->
                    <entry>
                        <observation moodCode="EVN" classCode="OBS">
                            <code code="DE09.00.056.00" codeSystem="2.16.156.10011.2.2.1" displayName="卫生服务要求" codeSystemName="卫生信息数据元目录"/>
                            <value xsi:type="ST">${docData.zhuYaoJKWT.weiShengFWYQ}</value>
                        </observation>
                    </entry>
                </section>
            </component>
            <#--1..1-->
            <component>
                <section>
                    <code codeSystem="2.16.840.1.113883.6.1" displayName="症状章节" codeSystemName="LOINC"/>
                    <text/>
                    <#--1..*-->
                    <#list docData.zhengZhuangList as zhengzhuang>
                    <#include "fragment/body/zhengzhuang/zhengzhuang.ftl">
                    </#list>
                </section>
            </component>
            <#--0..1-->
            <#if docData.shiYanShiJCJYList??>
                <component>
                    <section>
                        <code code="30954-2" codeSystem="2.16.840.1.113883.6.1" displayName="STUDIES SUMMARY" codeSystemName="LOINC"/>
                        <text/>
                        <#--0..1-->
                        <#include "fragment/body/shiyanshijiancha/shiyanshijiancha.ftl">
                        <#--0..*-->
                        <#list docData.shiYanShiJCJYList as item>
                        <#include "fragment/body/shiyanshijiancha/shiyanshijiancha-xmjjg.ftl">
                        </#list>
                    </section>
                </component>
            </#if>
            <#--0..1-->
            <#if docData.zhenDuanList??>
                <component>
                    <section>
                        <code code="29548-5" codeSystem="2.16.840.1.113883.6.1" displayName="Diagnosis" codeSystemName="LOINC"/>
                        <text/>
                        <#--0..*-->
                        <#list docData.zhenDuanList as item>
                        <#include "fragment/body/zhenduanjilu/zhenduanjilu.ftl">
                        </#list>
                    </section>
                </component>
            </#if>
            <#--0..1-->
            <#if docData.yongYao??>
                <#list docData.yongYao as yongyao>
                <component>
                    <section>
                        <code code="10160-0" codeSystem="2.16.840.1.113883.6.1" displayName="HISTORY OF MEDICATION USE" codeSystemName="LOINC"/>
                        <text/>
                        <#--0..*-->
                        <#list yongyao.zhongYaoSYLBList as item>
                        <#include "fragment/body/yongyao/yongyao-zylb.ftl">
                        </#list>
                        <#--1..*-->
                        <#list yongyao.yongYaoItemList as item>
                        <#include "fragment/body/yongyao/menzhenyongyao.ftl">
                        </#list>
                    </section>
                </component>
                </#list>
            </#if>
            <#--0..1-->
            <#if docData.shouShuList??>
                <component>
                    <section>
                        <code code="47519-4" displayName="HISTORY OF PROCEDURES" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" />
                        <text/>
                        <#--0..*-->
                        <#list docData.shouShuList as item>
                            <#include "fragment/body/shoushucaozuo/shoushucaozuo.ftl">
                        </#list>
                    </section>
                </component>
            </#if>
            <#--0..*-->
            <#if docData.qiTaYXCZList??>
                <#--0..*-->
                <#list docData.qiTaYXCZList as item>
                    <#include "fragment/body/qitayixuechuzhi/qitayixuechuzhi.ftl">
                </#list>
            </#if>
            <#--0..1-->
            <#if docData.zhuanZhenJY??>
                <component>
                    <section>
                        <code code="18776-1" codeSystem="2.16.840.1.113883.6.1" displayName="referal" codeSystemName="LOINC"/>
                        <text/>
                        <#--0..1-->
                        <#include "fragment/body/zhuanzhenjianyi/zhuanzhenjianyi-zzgcms.ftl">
                        <#--0..1-->
                        <#include "fragment/body/zhuanzhenjianyi/zhuanzhenjianyi.ftl">
                    </section>
                </component>
            </#if>
            <#--0..1-->
            <#if docData.jianKangPG??>
                <component>
                    <section>
                        <code code="51848-0" codeSystem="2.16.840.1.113883.6.1" displayName="Assessment note" codeSystemName="LOINC"/>
                        <text/>
                        <#--0..1-->
                        <#include "fragment/body/jiankangpinggu/jiankangpinggu.ftl">
                    </section>
                </component>
            </#if>
            <#--1..1-->
            <component>
                <section>
                    <code code="18776-5" codeSystem="2.16.840.1.113883.6.1" displayName="TREATMENT PLAN" codeSystemName="LOINC"/>
                    <text/>
                    <#--0..1-->
                    <#include "fragment/body/zhiliaojihua/zhiliaojihua-czjh.ftl">
                    <#--0..1-->
                    <#include "fragment/body/zhiliaojihua/zhiliaojihua-zlfa.ftl">
                </section>
            </component>
            <#--0..1-->
            <#if docData.jianKangZDList??>
                <component>
                    <section>
                        <code code="69730-0" codeSystem="2.16.840.1.113883.6.1" displayName="Instructions" codeSystemName="LOINC"/>
                        <text/>
                        <#--0..*-->
                        <#list docData.jianKangZDList as item>
                        <#include "fragment/body/jiankangzhidao/jiankangzhidao.ftl">
                        </#list>
                    </section>
                </component>
            </#if>
            <#--1..1-->
            <#list docData.feiYongList as item>
                <component>
                    <section>
                        <code code="48768-6" codeSystem="2.16.840.1.113883.6.1" displayName="PAYMENT SOURCES" codeSystemName="LOINC"/>
                        <text/>
                        <#--1..1-->
                        <#include "fragment/body/feiyong/feiyong-mzfy.ftl">
                        <#--1..1-->
                        <#include "fragment/body/feiyong/feiyong-ylfkfs.ftl">
                        <#--1..1-->
                        <#include "fragment/body/feiyong/feiyong-ylfyjsfs.ftl">
                        <#--1..1-->
                        <#include "fragment/body/feiyong/feiyong-mzfyjsfs.ftl">
                    </section>
                </component>
            </#list>
        </structuredBody>
    </component>
</ClinicalDocument>